package com.purchase.ml.service.prod.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.purchase.ml.bean.base.ApiRestResult;
import com.purchase.ml.bean.req.prod.SysCategoryEditDto;
import com.purchase.ml.bean.req.prod.SysCategoryNewDto;
import com.purchase.ml.bean.req.prod.SysCategoryQueryDto;
import com.purchase.ml.consts.Constants;
import com.purchase.ml.entity.prod.SysCategory;
import com.purchase.ml.entity.prod.SysProductSku;
import com.purchase.ml.enums.SysSeqNameEnum;
import com.purchase.ml.exception.BizException;
import com.purchase.ml.exception.CommonEnum;
import com.purchase.ml.mapper.prod.SysCategoryMapper;
import com.purchase.ml.mapper.prod.SysProdSkuMapper;
import com.purchase.ml.service.common.CommonSeqService;
import com.purchase.ml.service.prod.SysCategoryService;
import com.purchase.ml.service.prod.SysProdSkuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author :zxm
 * @date :2021/2/25 18:55
 * @description :some description
 **/
@Service
@Slf4j
public class SysProdSkuServiceImpl extends ServiceImpl<SysProdSkuMapper, SysProductSku> implements SysProdSkuService {

    @Autowired
    private SysProdSkuMapper prodSkuMapper;

    @Override
    public SysProductSku findProductSkuByProductId(Long productId) {
        return prodSkuMapper.selectProductSkuByProductId(productId);
    }
}
